<?php

namespace App\Logic;


class PaybrcheFacaory
{
    /**
     * @function  根据工厂对象来创建策略
     * @param $type
     * @return BodyPay|WxPay
     */
    public static  function getReservationInstance($type)
    {
        switch ($type) {
            case '1':
                return new BodyPay();
                break;
            case '2':
                return new WxPay();
                break;
        }
    }

}
